package com.wjpeng.wms.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Setter @Getter
public class QueryObject {
    private Integer currentPage = 1;
    private Integer pageSize = 5;

    public int getStart(){
        return (currentPage - 1) * pageSize;
    }

    protected String empty2Null(String str){
        return StringUtils.hasLength(str) ? str : null;
    }

}
